package com.py.credit.controller;

import com.py.credit.service.PlatformApiService;
import com.py.framework.core.controller.BaseController;
import com.py.framework.core.rest.support.RestServiceResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.LinkedHashMap;

@RestController
@RequestMapping("/platformApi")
public class PlatformApiController extends BaseController{

    @Autowired
    private PlatformApiService platformApiService;

    /**
     * 联合奖惩远程调用获取企业信息
     * @param ztmc
     * @return
     */
    @RequestMapping(value = "/getCompanyInfo.do", method = RequestMethod.POST)
    @ResponseBody
    public RestServiceResult<LinkedHashMap> getCompanyInfo(@RequestParam String ztmc) {
        return super.getSuccessRestServiceResult(platformApiService.getCompanyInfo(ztmc));
    }
}
